package com.bruce.pattern.behavioral.command;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by bruce on 2018/11/10 23:54
 */
@Slf4j
public class CourseVideo {
    private String name;

    public CourseVideo(String name) {
        this.name = name;
    }

    public void open() {
        log.info("打开" + this.name + "视频");
    }

    public void close() {
        log.info("关闭" + this.name + "视频");
    }


}
